<script setup>
import { toRefs } from 'vue'

const props = defineProps({
  icon: {
    type: String,
    default: 'icon-plus'
  },
  title: {
    type: String,
    default: '添加'
  }
})

let { icon, title } = toRefs(props)
</script>

<template>
  <a-button type="primary">
    <template v-slot:icon>
      <my-icon :type="icon"></my-icon>
    </template>
    {{ title }}
  </a-button>
</template>
